#ifndef __GAME_MANAGER_H__
#define __GAME_MANAGER_H__

#include "cocos2d.h"
#include "ADUMainScene.h"
#include "ADUConstant.h"
#include "ADUSplashScene.h"
#include "ADUGameOverScene.h"

USING_NS_CC;
class GameManager {
private:
	static GameManager* instance;
	GameManager(){ _score = 0; _bestScore = 0;};
	int _score;
	int _bestScore;
public:
	static GameManager* getInstance();
	~GameManager();
	void RunScene(int Scene);
	int getScore() {return _score;}
	int getBestScore() {return _bestScore;}
	void saveBestScore();
	bool checkBestScore();
	void increaseScore() {
		_score += 1;
		if(checkBestScore()) 
			saveBestScore();
	};
	void resetScore() {_score = 0;};
};

#endif

